package com.ruoyi.common.model.mall.dto.resp;

import java.util.HashMap;
import java.util.Map;

/**
 * @author huixh
 */
public class LoginResp {
    private String token;

    private String sessionKey;

    private final Map<String,Object> userInfo = new HashMap<>();


    public LoginResp setNickName(String nickName){
        userInfo.put("nickName",nickName);
        return this;
    }

    public LoginResp setAvatarUrl(String avatarUrl){
        userInfo.put("avatarUrl",avatarUrl);
        return this;
    }

    public String getSessionKey() {
        return sessionKey;
    }

    public LoginResp setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
        return this;
    }

    public String getToken() {
        return token;
    }

    public LoginResp setToken(String token) {
        this.token = token;
        return this;
    }

    public Map<String, Object> getUserInfo() {
        return userInfo;
    }
}
